package conson.tech.manage.coupons.entity.dto;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import java.io.Serializable;

/**
 * ClassName: CouponsCostDto
 * Description: 新增优惠券费用归属入参
 * Author: ZYF
 * Date: 2020/7/20
 * Version: 1.0
 */
@Data
public class CouponsCostDto implements Serializable{

    /**费用归属   0 便捷青岛 1 商户*/
    @ApiModelProperty(value = "费用归属   0 便捷青岛 1 商户")
    private Integer type;

    /**费用占比*/
    @ApiModelProperty(value = "费用占比")
    @Max(value = 100)
    @Min(value = 1)
    private Integer costRatio;

}
